package com.shelpe.services.simbasync.dao;

import com.shelpe.services.simbasync.model.RptAdgroupCreative;
import com.shelpe.services.simbasync.model.RptAdgroupCreativeExample;
import com.shelpe.services.simbasync.model.RptAdgroupCreativeKey;

import java.util.Date;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RptAdgroupCreativeMapper {
    int countByExample(RptAdgroupCreativeExample example);

    int deleteByExample(RptAdgroupCreativeExample example);

    int deleteByPrimaryKey(RptAdgroupCreativeKey key);

    int insert(RptAdgroupCreative record);
    
    int insertBatch(List<RptAdgroupCreative> list);

    int insertSelective(RptAdgroupCreative record);

    List<RptAdgroupCreative> selectByExample(RptAdgroupCreativeExample example);

    RptAdgroupCreative selectByPrimaryKey(RptAdgroupCreativeKey key);

    int updateByExampleSelective(@Param("record") RptAdgroupCreative record, @Param("example") RptAdgroupCreativeExample example);

    int updateByExample(@Param("record") RptAdgroupCreative record, @Param("example") RptAdgroupCreativeExample example);

    int updateByPrimaryKeySelective(RptAdgroupCreative record);

    int updateByPrimaryKey(RptAdgroupCreative record);
    
    Date getLastTimeFromRpt(@Param("user_id")long userId, @Param("campaign_id")long campaignId, @Param("adgroup_id")long adgroupId);
}